/* KPI填写页面样式 */
.kpi-fill-container {
  padding: 20rpx 32rpx;
  background-color: #f5f5f5;
  min-height: 100vh;
  box-sizing: border-box;
}

/* 表单容器 */
.kpi-form {
  background: #ffffff;
  border-radius: 16rpx;
  padding: 32rpx;
  margin-bottom: 32rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
}

/* 表单标题 */
.form-title {
  font-size: 36rpx;
  font-weight: 600;
  color: #333333;
  margin-bottom: 24rpx;
  position: relative;
  padding-left: 16rpx;
}

.form-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8rpx;
  height: 32rpx;
  background: linear-gradient(135deg, #1890ff, #52c41a);
  border-radius: 4rpx;
}

/* 表单项目 */
.form-item {
  margin-bottom: 32rpx;
}

.form-item:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 28rpx;
  color: #1890ff; /* 蓝色突出 */
  margin-bottom: 16rpx;
  font-weight: 600; /* 加粗 */
}

.form-input {
  width: 100%;
  height: 88rpx;
  border: 2rpx solid #e8e8e8;
  border-radius: 12rpx;
  padding: 0 24rpx;
  font-size: 28rpx;
  color: #333333;
  box-sizing: border-box;
  background-color: #fafafa;
}

.form-input:focus {
  border-color: #1890ff;
  background-color: #ffffff;
}

/* 分数行布局 */
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row !important;
  margin-bottom: 24rpx;
}

.score-left {
  flex: 1;
  margin-right: 20rpx;
}

.score-right {
  flex-shrink: 0;
}

/* 评分选择器 */
.score-picker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.picker-text {
  min-width: 160rpx;
  height: 64rpx;
  line-height: 64rpx;
  text-align: center;
  font-size: 26rpx;
  color: #ffffff;
  font-weight: 500;
  background: linear-gradient(135deg, #1890ff, #52c41a);
  border-radius: 32rpx;
  padding: 0 24rpx;
  box-shadow: 0 4rpx 12rpx rgba(24, 144, 255, 0.3);
}

.picker-text:active {
  opacity: 0.8;
  transform: translateY(1rpx);
}

/* 已选择分数的样式 */
.picker-text[selected] {
  background: linear-gradient(135deg, #fa8c16, #f5222d);
}

/* 评论文本域 */
.form-textarea {
  width: 100%;
  height: 200rpx;
  border: 2rpx solid #e8e8e8;
  border-radius: 12rpx;
  padding: 24rpx;
  font-size: 28rpx;
  color: #333333;
  box-sizing: border-box;
  background-color: #fafafa;
  resize: none;
}

.form-textarea:focus {
  border-color: #1890ff;
  background-color: #ffffff;
}

/* 提交按钮 */
.submit-btn {
  position: fixed;
  bottom: 40rpx;
  left: 32rpx;
  right: 32rpx;
  height: 96rpx;
  background: linear-gradient(135deg, #1890ff, #52c41a);
  border-radius: 48rpx;
  color: #ffffff;
  font-size: 32rpx;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8rpx 24rpx rgba(24, 144, 255, 0.3);
}

.submit-btn:active {
  opacity: 0.8;
  transform: translateY(2rpx);
}

/* 加载状态 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100rpx 0;
}

.loading-spinner {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid #e8e8e8;
  border-top: 4rpx solid #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24rpx;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 28rpx;
  color: #999999;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100rpx 0;
}

.empty-icon-text {
  font-size: 80rpx;
  margin-bottom: 24rpx;
}

.empty-text {
  font-size: 28rpx;
  color: #999999;
  margin-bottom: 32rpx;
}

/* 错误提示 */
.error-tip {
  color: #ff4d4f;
  font-size: 24rpx;
  margin-top: 8rpx;
}

/* 只读状态 */
.readonly {
  background-color: #f9f9f9;
  color: #999999;
}

.readonly:focus {
  border-color: #e8e8e8;
  background-color: #f9f9f9;
}